﻿




<!DOCTYPE >
<html lang="en" xmlns:th="http://www.thymeleaf.org">
  <head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>My JSP 'position_release_search.jsp' starting page</title>
     <link rel="stylesheet"
			href="../../../css/table.css" type="text/css">
		<link rel="stylesheet"
			href="../../../css/cwcalendar.css" type="text/css">
		<script type="text/javascript"
			src="../../../javascript/comm/comm.js">
		</script>
		<script type="text/javascript"
			src="../../../javascript/comm/list.js">
		</script>
		<script type="text/javascript"
			src="../../../javascript/calendar-ch.js">
		</script>
		<script type="text/javascript"
			src="../../../javascript/jquery-1.7.2.js">
		</script>
		<script type="text/javascript"
			src="../../../javascript/locate.js">
		</script>
	 <script type="text/javascript"
			src="../../../javascript/select.js">
		</script>

      //分页插件
      <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"></link>
      <script type="text/javascript" src="js/jquery.min.js"></script>
      <script type="text/javascript" src="js/bootstrap.min.js"></script>

		</head>
	<body>
		<form method="post" action="" name="f1">
		<input type="hidden" name="utilBean.currPage" id="page"/>
			<table width="100%">
				<tr>
					<td>
						<font color="black">您正在做的业务是：人力资源--招聘管理--职位发布管理--职位发布查询 
						</font>
					</td>
				</tr>
			 
			</table>
			当前可变更是职位发布总数：2例
			<table width="100%" border="1" cellpadding=0 cellspacing=1
				bordercolorlight=#848284 bordercolordark=#eeeeee
                   class="table table-hover">
				<tr>
					<td width="15%" class="TD_STYLE1">
						职位名称
					</td>
					<td width="10%" class="TD_STYLE1">
						机构名称
					</td>
					<td width="10%" class="TD_STYLE1">
						招聘人数
					</td>
					<td width="20%" class="TD_STYLE1">
						发布时间
					</td>
					<td width="15%" class="TD_STYLE1">
						截止时间
					</td>
					<td width="10%" class="TD_STYLE1">
						申请职位
					</td>
					 
				</tr>


                <tr th:each="f:${engageMajorReleases}">
                    <td class="TD_STYLE2" th:text="${f.major_name}">

                    </td>
                    <td  th:text="${f.second_kind_name}">

                    </td>
                    <td  th:text="${f.human_amount}">

                    </td>
                    <td  th:text="${#maps.containsKey(f,'regist_time')?f.regist_time:''}">

                    </td >
                    <td  th:text="${f.deadline}">

                    </td>

                    <td >


                        <a th:href="|position_release_details?id=${f.mre_id}|" class="btn btn-primary">申请该职位</a>
                    </td>
                </tr>


					
			</table>
            <!--显示分页信息-->
            <div class="row">
                <!--文字信息-->
                <div class="col-md-6">
                    当前第 <input name="startPage" th:value="${pageInfo.pageNum }"  style="width: 20px"/>/[[${pageInfo.pages}]]页.一共 [[${pageInfo.total}]] 条记录
                </div>
                <!--点击分页-->
                <div class="col-md-6">
                    <nav aria-label="Page navigation">
                        <ul class="pagination">
                            <li><a href="javascript:f1.startPage.value=1;f1.submit()">首页</a></li>
                            <!--上一页-->
                            <li>
                                <a th:if="${pageInfo.hasPreviousPage}" href="javascript:f1.startPage.value=f1.startPage.value-1;f1.submit()" aria-label="Previous">
                                    <span aria-hidden="true">«</span>
                                </a>
                            </li>
                            <!--循环遍历连续显示的页面，若是当前页就高亮显示，并且没有链接-->
                            <li th:each="page_num:${pageInfo.navigatepageNums}"   th:class="${page_num == pageInfo.pageNum?'active':''}" >
                                <a href="#" th:text="${page_num}" th:if="${page_num == pageInfo.pageNum}"> </a>
                                <a th:if="${page_num != pageInfo.pageNum}" th:href="|javascript:f1.startPage.value=${page_num};f1.submit()|" th:text="${page_num}"></a>
                            </li>
                            <!--下一页-->
                            <li>
                                <a th:if="${pageInfo.hasNextPage}" href="javascript:f1.startPage.value=f1.startPage.value-0+1;f1.submit()"
                                   aria-label="Next">
                                    <span aria-hidden="true">»</span>
                                </a>
                            </li>
                            <li><a th:href="|javascript:f1.startPage.value=${pageInfo.pages};f1.submit()|">尾页</a></li>
                        </ul>
                    </nav>
                </div>
            </div>
		</form>
		<script type="text/javascript">
		function up(currPage,row){  
		if(currPage<=0){
		document.getElementById("page").value = row;
		}else{
		document.getElementById("page").value =currPage; 
		}
		 document.fm.submit();
		}
		function down(currPage,row){ 
		if(currPage>=row){
		document.getElementById("page").value = row;
		}else{
		document.getElementById("page").value =currPage; 
		}
		 document.fm.submit();
		}

	     document.fm.submit();
	 	}
		</script>
	</body>
</html>
